{% extends 'index.html' %}
{% block body %}
        <table cellpadding="0" cellspacing="3" border="0">
            <tr>
                <th>Fornitore</th>
                <th>Cod.Art Forn</th>
                <th>Articolo</th>
                <th>Data forn.</th>
                <th>Data prezzo</th>
                <th>Prezzo lordo</th>
                <th>Prezzo netto</th>
                <th>IVA (%)</th>
            </tr>
            {% for dao in pageData["objects"] %}
            <tr class="row" >
                <td class="detail">{{dao.fornitore}}</td>
                <td class="detail">{{dao.codice_articolo_fornitore}}</td>
                <td class="detail">{{dao.articolo}}</td>
                <td class="detail" style="width:70px;text-align:center;font-size:10px;">{{utils.dateToString(dao.data_fornitura) or "-"}}</td>
                <td class="detail" style="width:70px;text-align:center;font-size:10px;">{{utils.dateToString(dao.data_prezzo) or "-"}}</td>
                <td class="detail" style="width:70px;text-align:right;font-size:10px;">{{utils.mNLC(dao.prezzo_lordo or 0,2)}}</td>
                <td class="detail" style="width:70px;text-align:right;font-size:10px;">{{utils.mNLC(dao.prezzo_netto or 0,2)}}</td>
                <td class="detail" style="width:40px;text-align:right;font-size:10px;">{{utils.mN(dao.percentuale_iva or 0,0)}}</td>
            </tr>
            {% endfor %}
        </table>
{% endblock %}
